package com.sinven.mapper;

import com.sinven.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {

    long countStudent();

    int addStudent(Student student);

    int updateStudent(Student student);

    int deleteStudent(long sid);

    List<Student> queryStudents(@Param("startIndex") long startIndex,
                                @Param("pageSize") int pageSize);

    Student queryStudent(long sid);
}
